#ifndef _ipcInterface_h_
#define _ipcInterface_h_


#include "ipcGetData.h"



void *ip_camera_init(const char *url, const char *user, const char *passwd, const IPCameraRecvCallBackFunc callBack, void* context, const unsigned int channelIdex);
int ip_camera_exit(void *ipCameraObj);

int ip_camera_get_connect_status(void *ipCameraObj);
int ip_camera_add_frameidx(void *ipCameraObj);
unsigned int ip_camera_get_frameidx(void *ipCameraObj);






/********************* debug ***************************************/

/*
��������ͷ
/main.h264 ��һ·����������
/sub.h264  �ڶ�·����������
*/

//#define DEFAULT_MAIN_URL		"/11"
//#define DEFAULT_MAIN_IP			"192.168.100.108"
//#define DEFAULT_MAIN_PORT		554
//#define DEFAULT_MAIN_USER		"admin"
//#define DEFAULT_MAIN_PASSWD		"admin"

#define DEFAULT_MAIN_URL		"/cam/realmonitor?channel=1&subtype=0"
#define DEFAULT_MAIN_IP			"192.168.100.101"
#define DEFAULT_MAIN_PORT		554
#define DEFAULT_MAIN_USER		"admin"
#define DEFAULT_MAIN_PASSWD		"admin"

#define DEFAULT_SUB_URL			"/cam/realmonitor?channel=1&subtype=1"
#define DEFAULT_SUB_IP			"192.168.100.101"
#define DEFAULT_SUB_PORT		554
#define DEFAULT_SUB_USER		"admin"
#define DEFAULT_SUB_PASSWD		"admin"

//TOMORROW IPC
#define TOMORROW_tIP "rtsp://192.168.100.92/"
#define TOMORROW_sIP "rtsp://192.168.100.94/"
#define TOMORROW_t(i) "rtsp://192.168.100.92/"##i
#define TOMORROW_s(i) "rtsp://192.168.100.94/"##i

//#define TOMORROW_t1 "rtsp://192.168.100.92/1"
//#define TOMORROW_t2 "rtsp://192.168.100.92/2"
//#define TOMORROW_t3 "rtsp://192.168.100.92/3"
//#define TOMORROW_t4 "rtsp://192.168.100.92/4"
//#define TOMORROW_s1 "rtsp://192.168.100.94/1"
//#define TOMORROW_s2 "rtsp://192.168.100.94/2"
//#define TOMORROW_s3 "rtsp://192.168.100.94/3"
//#define TOMORROW_s4 "rtsp://192.168.100.94/4"
#define TOMORROW_USER ""
#define TOMORROW_PASSWD ""

void* ip_camera_init_default_main(const IPCameraRecvCallBackFunc callBack, void* context);
void* ip_camera_init_default_sub(const IPCameraRecvCallBackFunc callBack, void* context);

#endif
